package src.edu.wayne.cs.csc4110.hw6.plugins;

import static org.junit.Assert.assertEquals;
import src.edu.wayne.cs.csc4110.hw6.implementations.FrameWorkImpl;
import src.edu.wayne.cs.csc4110.hw6.interfaces.FrameWork;
import src.edu.wayne.cs.csc4110.hw6.tests.DatabaseTests;


public class Main {
	public static void main(String[] args) throws Exception {
		
		//This code makes a dbase using the JUnit test code.
		DatabaseTests dbaseFactory = new DatabaseTests();
		dbaseFactory.setUp(); 
		
		//This code should stay in the final version.
		FrameWork myFramework = FrameWorkImpl.getFrameWork();
		myFramework.setDataBase(dbaseFactory.getDataBase());
		assertEquals(myFramework.startFrameWork(new GamePlugin()), true);
		
		myFramework.startUserSession();
		//JPanel gamePanel = new JPanel();
		//GameStatus gameStatus = null;
		
		//myFramework.setScreen(gamePanel, gameStatus, userId);
		
		//int gameId = myFramework.startGame(userId);
		
		//myFramework.saveGame(gameId);
		//myFramework.quitGame(gameId);
		
		System.out.printf("all done \n");
	}
}
